<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>啥玩意？？？？</title>

     <!-- 页面样式 -->
     <style>
        html,body{
            width:100%;
            height:100%;
            background: pink;
        }
        html,body,div,h2{
            padding:0;
            margin:0;
        }

        #login{
            width:100%;
            height:100%;
            background: darkorange;
        }
        .login{
            margin-left:0px;
            
        }

        .login-box{
            width:100%;
            height:100%;
            background: url(../imgs/one.png) 0 0 no-repeat;
            background-size: 100% 100%;

            /* 盒子垂直水平居中  */
            display: flex;  /* 弹性盒子*/
            justify-content: center;
            align-items: center;


        }

        .form-box{
            width:400px;
            /* height:480px; */
            min-height: 400px;

            background: rgba(255,255,255,0.7);
            border-radius: 15px;    /* 边框圆角 */
            padding:15px;   /* 内边距 */
            box-sizing: border-box;
        }
        .title{
            text-align: center;  /* 文本剧中 */
            font-size: 30px;   /*字体大小*/
            color:#1296db;  /* 字体颜色 */
        }

        .form{
            padding:15px 15px;   
        }
        .col{
            margin-top:15px;
            padding-bottom:15px;
        }
        .label{
            font-size: 20px;
            color:#000;
            font-weight: 500;   /*字体粗细*/ 
        }
        .inpcol{
            margin-top:5px;
        }
        input{
            height:45px;
            width:100%;
            padding:0 10px;
            box-sizing: border-box;  /*保持宽度固定 内容不会溢出*/
            outline: none;
            border:1px solid #999;  /*边框*/
            border-radius: 6px;
            font-size: 18px;
            line-height: 45px;
            color:#000;
            background: transparent;
            font-weight: bold;  
        }
        .btns{
            margin-top:60px;
        }
        .btn-login{
            width:100%;
            height:45px;
            /* background: #1296db; */
            background: -webkit-linear-gradient(left,#1296db,#f56c6c);
            color:#fff;
            border:none;
            outline: none;
            border-radius: 10px;
            font-size: 18px;
            cursor: pointer;
        }
        .btn-login:hover{
            opacity: 0.6;
        }

        .rows{
            display: flex;
            justify-content: space-between;
            margin-top:4px;
        }

        .item{
            text-decoration: none;  /* 去掉下划线 */ 
        }
        .aleft{
            color:#1989fa;
        }
        .aright{
            color:#f56c6c;
        }
    </style>

</head>

<body>

    <div class="login" id="login">
        <div class="login-box">
            <div class="form-box">
                <h2 class="title">欢迎登录</h2>

                <form action="/api/login" method="GET"  class="form">

                    <div class="col">
                        <div class="label">账号:</div>
                        <div class="inpcol">
                            <input type="text"  required  name="stu_account"   placeholder="请输入账号">
                        </div>
                    </div>

                    <div class="col">
                        <div class="label">密码:</div>
                        <div class="inpcol">
                            <input type="password" required  name="stu_password" placeholder="请输入密码" >
                        </div>
                    </div>

                    <div class="btns">
                        <button class="btn-login"  type="submit" >登录</button>
                        <div class="rows">
                            <a href="./register.html" class="item aleft">注册</a>
                            <a href="./findpass.html" class="item aright">找回密码</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    
</body>
</html>